import request from '@/utils/request.js';

// 获取搜索联想建议的请求
export const getSearchSugesstions = (q) => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q,
    },
  });
};

// 获取搜索结果的请求
export const getSearchResults = (params) => {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params,
  });
};
